@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}

// 可点击
.clickable {
  cursor: pointer;
}

// drawer内容容器
.drawer-container-scroll {
  padding-left: 20px;
  padding-right: 20px;
  overflow-y: scroll;
  height: calc(100vh - 128px);
  box-sizing: border-box;
}

/* 自定义滚动条宽度 */
::-webkit-scrollbar {
  width: 6px;
  /* 宽度 */
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  background: #d3dce6;
  /* 滚动条滑块背景颜色 */
  border-radius: 20px;
}

/* 滚动条滑块:hover */
::-webkit-scrollbar-thumb:hover {
  background: #99a9bf;
  /* 鼠标悬停时的颜色 */
  border-radius: 20px;
}

// 抽屉底部按钮
.drawer-footer__btn {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: right;
  padding-right: 40px;
  background-color: #fff;
  border-top: 1px solid #e4e7ed;
  line-height: 60px;
}

// el-form-item中select整行
.select-container {
  display: flex;
  width: 100%;
  /* 确保容器宽度为100% */
}

.select-container .el-select {
  flex-grow: 1;
  /* 使得select扩展以填充容器宽度 */
  width: 0;
  /* 通常与flex-grow一起使用，以确保select不采用默认宽度 */
}

.clickable-icon {
  font-weight: bold;
  color: #409EFF;
  font-size: 18px;
  /* 字体加粗 */
  cursor: pointer;
  /* 默认设置手型光标，表示可点击 */
}

.mx-10 {
  margin-left: 5px;
  margin-right: 5px;
}